package day04.polymorphic;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/22
 */
public class Test {
    public static void main(String[] args) {
        Bird bird = new Bird();
        Plane plane= new Plane();
        makeFly(bird);
        makeFly(plane);

    }
    public static void makeFly(CanFly canFly){
       canFly.fly();
    }
}
